/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.api.runtime;

import com.farmcode.api.runtime.regex.MatchContextCollection;
import java.io.Serializable;
import java.util.HashMap;

/**
 *
 * @author oiprado
 */
public class TemplateInfo extends HashMap<String, Object> implements Serializable{
    
    private String name;
    private String path;
    private String destiny;
    private String extension;
    private boolean used;
    private MatchContextCollection matchContextCollection;

    public TemplateInfo() {
        matchContextCollection = new MatchContextCollection();
    }
    
    public TemplateInfo(String name, String path, String destiny, String extension) {
        this();
        this.name = name;
        this.path = path;
        this.destiny = destiny;
        this.extension = extension;
    }

    public TemplateInfo(String name, String path, String destiny, String extension, boolean used) {
        this();
        this.name = name;
        this.path = path;
        this.destiny = destiny;
        this.extension = extension;
        this.used = used;
    }

    
    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * @return the destiny
     */
    public String getDestiny() {
        return destiny;
    }

    /**
     * @param destiny the destiny to set
     */
    public void setDestiny(String destiny) {
        this.destiny = destiny;
    }

    /**
     * @return the extension
     */
    public String getExtension() {
        return extension;
    }

    /**
     * @param extension the extension to set
     */
    public void setExtension(String extension) {
        this.extension = extension;
    }

    /**
     * @return the matchContextCollection
     */
    public MatchContextCollection getMatchContextCollection() {
        return matchContextCollection;
    }

    /**
     * @param matchContextCollection the matchContextCollection to set
     */
    public void setMatchContextCollection(MatchContextCollection matchContextCollection) {
        this.matchContextCollection = matchContextCollection;
    }

    /**
     * @return the used
     */
    public boolean isUsed() {
        return used;
    }

    /**
     * @param used the used to set
     */
    public void setUsed(boolean used) {
        this.used = used;
    }
}
